import requests
from bs4 import BeautifulSoup as bs

# url = 'https://www.baidu.com/'
url = 'https://movie.douban.com/top250'
headers = {
    'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36'
    }
response = requests.get(url=url,headers=headers)
print(response)
print(response.text)
# print(response.content)



